function begin(){
    window.onload=function(){
    	    function change(){
    	        $('.uu').hide();
    	        if($('.first-page').show()){
    	        	gg();
    	        };
    	        // $('#mc_play audio').get(0).play();    	        
    	    }
    	    setTimeout(change,1500);
    	    function io(){
    	    	 $('#mc_play audio').get(0).play();
    	    }
    	    
    	    setTimeout(io,1000);
//  	    function radio(){
//  	    	var radiox='<audio src="song.mp3" controls="controls" loop="loop" autoplay="autoplay"/></audio>';
//		        $('.radio').append(radiox)
//  	    }
//  	    setTimeout(radio,1000);
    	    function gg(){    	    	
				var fullHeight=($(window).height()-$('.mp-bd img').height());
				var speed=(-fullHeight)/12000;
				var carTime=$(window).height()/2/speed;
				$('.mp-car img').animate({'bottom':'50%'},carTime-1000,'linear','forwards');
				function maprun(){
					$('.mp-bd img').animate({'bottom':fullHeight},12000,'linear','forwards');
					$('.mp-car img').show();
				}
				setTimeout(maprun,carTime-1000);
				function carleft(){
					$('.mp-car').animate({'left':'-2%'},2000,'linear','forwards');
					$('.mp-car').animate({'left':'-6%'},2000,'linear','forwards');
					$('.mp-car').animate({'left':'-9.5%'},2000,'linear','forwards');
					$('.mp-car').animate({'left':'-9%'},1500,'linear','forwards');
					$('.mp-car').animate({'left':'-8%'},2000,'linear','forwards');
					$('.mp-car').animate({'left':'-8%'},5500,'linear','forwards');
				}
				setTimeout(carleft,10);
//				$('.mp-car img').animate({'bottom':'50%'},carTime-1000,'linear','forwards');
//				function maprun(){
//					$('.mp-bd img').animate({'bottom':fullHeight},12000,'linear','forwards');
//					$('.mp-car img').show();
//				}
//				setTimeout(maprun,carTime-1000);
//				function carleft(){
//					$('.mp-car').animate({'left':'-3.5%'},1918,'linear','forwards');
//					$('.mp-car').animate({'left':'-14%'},3432,'linear','forwards');
//					$('.mp-car').animate({'left':'-20%'},1500,'linear','forwards');
//					$('.mp-car').animate({'left':'-35%'},5754,'linear','forwards');
//					$('.mp-car').animate({'left':'-42%'},1096,'linear','forwards');
//				}
//				setTimeout(carleft,carTime-500);
				function rotate1(){
					$('.mp-car img').addClass('car1');
				}
				setTimeout(rotate1,carTime+9700);
				function hg(){
					$('.mp-pic img').eq(2).show(1000);
				}
				setTimeout(hg,carTime+1500);
//				function rotate2(){
//					$('.mp-car img').addClass('car2').removeClass('car1');
//				}
//				setTimeout(rotate2,carTime+6500);
				function pic3(){
					$('.mp-pic img').eq(0).show(1000);
					$('.mp-pic img').eq(3).show(500);
				}
				setTimeout(pic3,carTime+2500);
//				function rotate3(){
//					$('.mp-car img').addClass('car3').removeClass('car2');
//				}
//				setTimeout(rotate3,carTime+7600);
//				function rotate4(){
//					$('.mp-car img').addClass('car4').removeClass('car3');
//				}
//				setTimeout(rotate4,carTime+8500);
//				function rotate5(){
//					$('.mp-car img').addClass('car5').removeClass('car4');
//				}
//				setTimeout(rotate5,carTime+9500);
				function picshow(){
					$('.mp-pic img').eq(1).show(1000);
					$('.mp-pic').animate({'top':'100%'},25350,'linear','forwards');
				}
				setTimeout(picshow,carTime-500);
				function flyshow(){
					$('.fly').animate({'left':'-25%'},2000,'linear','forwards');
				}
				setTimeout(flyshow,carTime+8000);
				function rockshow(){
					$('.rock-bd img').show(500);
					$('.rock-bd').animate({'top':'10%'},4000,'linear','forwards');
				}
				setTimeout(rockshow,carTime+7000);
				function stepOne(){
					$('.bl-bd').animate({'top':'-60%'},1000,'linear','forwards');
				}
				setTimeout(stepOne,carTime+10000);
				function firstHide(){					
					$('.first-page').hide();					
				}
				setTimeout(firstHide,carTime+11500);
				function stepTwo(){
					$('.bl-bd').animate({'left':'65%','top':'19%'},2000,'linear','forwards');
				    $('.bl-bd img').animate({'width':'22%'},2000,'linear','forwards');
				    if($('.mt').show()){				    	
				    	setTimeout(mtx,1000);
				    }
				}
			    setTimeout(stepTwo,carTime+11000);
			    if($('.mt-car').show()){
			    	var frontWidth=-$('.front-car').width()/2;
					var backWidth=-$('.back-car').width()/2;
					$('.front-car').css('marginLeft',frontWidth);
					$('.back-car').css('marginLeft',backWidth);
			    }
			    function mtx(){				    	
					$('.front-car').animate({'width':'53%','marginLeft':'-25%'},4000);
					$('.back-car').animate({'width':'53%','marginLeft':'-27%'},4000);
					setTimeout(ftFly,4000);
					setTimeout(jtshow,6000);
					setTimeout(ftshow,6000);
				}
			    function ftFly(){
			    	$('.mt-ft img').animate({'left':'3%'},2000,'linear','forwards');
			    }
			    function jtshow(){
			    	$('.mt-jt img').show();
			    }
			    function ftshow(){			    	
			    	$('.mt-ft img').click(function(){
			    		$('.bl-bd').css('z-index',90);
						$('.mt-ft img').animate({'top':'-35%'},2000,'linear','forwards');						
						$('.mt-jt img').hide(2000);
						setTimeout(bdshow,2000);
					})
			    }
			    function bdshow(){
			    	$('.bdxs').slideDown(2000);
			    	$('.mt-car').hide();
			    	$('.mt-pqj img').hide();
			    	$('.tj').on('click',function(){
				    	/*$('.biao').slideUp(2000);
				    	setTimeout(wcshow,2000);*/
				    });	
			    }
			    
			    function wcshow(){
			    	$('.wc').slideDown(2000);			    	
			    }
			    $(".pay_list_c1").on("click",function(){
				    $(this).addClass("on").siblings().removeClass("on");
					$($(this).children()[0]).attr("checked","checked");
			    })
			    $('.all-s').click(function(){
				$('.share').show()
			    })
		}		
	}
}

